package me.landery.modules.sinco.repository;

import me.landery.modules.sinco.domain.Call;
import me.landery.modules.sinco.domain.Mode;
import me.landery.modules.sinco.domain.Vip;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface VipRepository extends JpaRepository<Vip, Long>, JpaSpecificationExecutor<Vip> {
    /**
     * 根据 PID 查询
     * @param name pid
     * @return /
     */
    List<Vip> findByBalance(Double name);

    Vip findByUserId(Long userId);
}